﻿@model IEnumerable<KRM.Core.vKRMRSViewRejection>
@{
    ViewBag.Title = "Rejected RDMs";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container-fluid">
    <fieldset>
        <legend>Search</legend>
        <form action="/rdm/rejectedrdms" class="row-fluid">
            <div class="span1">Order Ref</div>
            <div class="span2">
                <input type="text" name="orderref" class="input-block-level" value="@(Request["orderref"] ?? "")"/>
            </div>
            <div class="span2 text-right">Filter by status</div>
            <div class="span3">
                @Html.DropDownList("StatusId", null, new { @class = "input-block-level", onchange="this.form.submit()" })
            </div>
            <div class="span1">
                <input type="submit" class="btn btn-primary" value="Search" /></div>
        </form>
    </fieldset>
    <p>Rejected RDMs</p>
    <div class="rdm-scroll">
        <table class="table table-bordered table-fix tbl-selected krmtable" data-height="200">
            <thead>
                <tr>
                    <th>Order Ref</th>
                    <th>Customer</th>
                    <th>Order Item</th>
                    <th>Resolution Status</th>
                    <th>Product Option</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr style="cursor: pointer" onclick="rejectionselected('@item.DisputeID')">
                        <td>@item.Order_Ref</td>
                        <td>@item.Customer</td>
                        <td>@item.Order_Item</td>
                        <td>@item.Resolution_Status</td>
                        <td>@item.ProductOption</td>
                    </tr>
                }
            </tbody>
        </table>

    </div>
    <form action="/rdm/savecollection" method="POST" class="margin0 fr-rejectiondetail">
        <div class="row-fluid">
            <fieldset class="span5" >
                <legend>RDM Details</legend>
                <div class="row-fluid">
                    <div class="span4">Date Field</div>
                    <div class="span8">
                        <input type="text" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">Agent</div>
                    <div class="span8">
                        <input type="text" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">Order Items</div>
                    <div class="span8">
                        <input type="text" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">RDM Items</div>
                    <div class="span8">
                        <input type="text" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">RDM Reason</div>
                    <div class="span8">
                        <input type="text" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">Further Description</div>
                    <div class="span8">
                        <textarea class="input-block-level" rows="7"></textarea>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">Preferred Resolution</div>
                    <div class="span8">
                        <input type="text" class="input-block-level" />
                    </div>
                </div>
            </fieldset>
            <div class="span7">
                <fieldset>
                    <legend>Approval Details</legend>
                    <div class="row-fluid">
                        <div class="span4">Action Taken</div>
                        <div class="span8">
                            <input type="text" class="input-block-level" />
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">Further Details</div>
                        <div class="span8">
                            <textarea class="input-block-level"></textarea>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Replacement Details</legend>
                    <div class="row-fluid">
                        <div class="span4">Status</div>
                        <div class="span8">
                            <input type="text" class="input-block-level" />
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">Further Details</div>
                        <div class="span8">
                            <textarea class="input-block-level"></textarea>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Rejection Resolution</legend>
                    <div class="row-fluid">
                        <div class="span4">Action</div>
                        <div class="span8">
                            <input type="text" class="input-block-level" />
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">Further Details</div>
                        <div class="span8">
                            <textarea class="input-block-level"></textarea>
                        </div>
                    </div>
                </fieldset>
            </div>
        </div>
    </form>
</div>
